package com.jlxy.chen.eroad;

import android.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class ContentFragment extends Fragment {

    private TextView textView;
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
        View view = inflater.inflate(R.layout.activity_content_fragment,container,false);
        textView = (TextView)view.findViewById(R.id.textView);
        String text = getArguments().getString("text");
        textView.setText(text);
        return view;
    }

}
